<template>
  <div id="detailed">
    <c-title :hide="false" :text="orderType === 'store' || orderType === 'storeBalance' ? '我的提成' : `我的${this.fun.initWithdrawal()}`"></c-title>
    <div class="today-box" v-if="orderType === 'store' || orderType === 'storeBalance'">
      <div class="month-sty">{{ ratioDatas[3] ? ratioDatas[3].data : "" }}{{ ratioDatas[3] ? "￥" + ratioDatas[3].money : "" }}</div>
      <ul class="today_bonus">
        <li v-for="(item, i) in ratioDatas" :key="i" :class="item.name" v-if="i < 3">
          <div class="box-money">{{ item.money }}</div>
          <div class="box-data">{{ item.data }}</div>
        </li>
      </ul>
    </div>

    <van-tabs v-model="selected" @click="swichTabTItem" title-active-color="var(--themeBaseColor)" background="#f5f5f5">
        <van-tab v-for="(item,index) in tabs_list" :key="index"  :name="item.name" :title="item.title"></van-tab>
    </van-tabs>
    <div>
      <extensionTabs  v-if="orderType == 'supplier' || orderType=='extension'" :listData="list" :orderType="orderType"></extensionTabs>
      <div v-else-if="orderType === 'store' || orderType === 'storeBalance' ">
        <div v-for="(model, i) in list" :key="i">
          <div class="tbs">
            <ul class="item2">
              <li>订单号：{{  orderType === 'storeBalance'?model.sn:model.order_sn }}</li>
              <li>{{ model.created_at ? model.created_at : `&nbsp;`}}</li>
            </ul>
            <div class="item3">
              <span class="red">提成+{{ model.amount }}</span>
              <p v-if="orderType === 'storeBalance'" :class="model.status_name == '未结算' ? 'no-red' : ''">{{ model.status_name }}</p>
              <p v-else :class="model.settlement == '未结算'&&selected == 3 && orderType !== 'extension' ? 'no-red' : ''">{{ model.settlement }}</p>
            </div>
          </div>
        </div>
      </div>
      


    </div>
  </div>
</template>
<script>
import member_income_presentationRecordcontroller from "./member_income_presentationRecordcontroller";

export default member_income_presentationRecordcontroller;
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
::v-deep .van-tabs__line {
  background-color: var(--themeBaseColor);
  width: 1.25rem;
  bottom: 21px;
}
#detailed {
  .today-box {
    background: white;
    margin: 0.5rem 0.6rem 0 0.6rem;
    border-radius: 0.4rem;
    padding: 0.9rem 0.7rem 0.7rem 0.7rem;
    .month-sty {
      font-size: 0.9rem;
      font-weight: bold;
      color: #00001c;
      text-align: left;
      margin-bottom: 0.625rem;
    }
    .today_bonus {
      display: flex;
      justify-content: space-around;
      background: #fafafa;
      padding: 0.8rem 0;
      border-radius: 0.4rem;
      .box-money {
        font-size: 0.9rem;
        color: #00001c;
        font-weight: bold;
      }
      .box-data {
        font-size: 0.75rem;
        color: #6e6e79;
        margin-top: 0.25rem;
      }
    }
  }

  a {
    color: #000;
  }

  .mint-navbar {
    margin-bottom: 0.125rem;
  }

  .mint-navbar .mint-tab-item {
    padding: 0.875rem 0;
  }

  .times {
    text-align: left;
    text-indent: 0.625rem;
    line-height: 2rem;
    background: #fff;
  }

  .tbs {
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    margin: 0.4rem 0.75rem 0.625rem 0.75rem;
    border-radius: 0.5rem;
    // height: 67px;

    .item2 {
      flex: 3;
      text-align: left;
      height: 100%;

      li:last-child {
        font-size: 0.75rem;
        font-weight: 400;
        color: #6e6e79;
      }
      li:first-child {
        font-size: 0.8125rem;
        font-weight: bold;
        color: #00001c;
        margin-bottom: 0.3438rem;
        white-space: nowrap;
      }
    }

    .item3 {
      flex: 2;
      text-align: right;
      height: 100%;

      .red {
        color: #f15353;
        font-weight: 500;
        font-size: 0.85rem;
      }

      .no-red {
        color: #f15353;
      }

      .green {
        color: green;
      }

      .yellow {
        color: yellow;
      }

      .reduce {
        color: #e51c23;
      }

      span {
        display: inline-block;
        font-size: 0.9375rem;
        margin-bottom: 0.4688rem;
      }

      p {
        font-weight: 400;
        color: #6e6e79;
        font-size: 0.75rem;
      }
    }
  }
}
</style>
